package org.example.flea_market_mvc.enums;

/**
 * 支付方式枚举类
 * 定义系统支持的支付方式代码和描述
 */
public enum PaymentMethodEnum {
    WECHAT_PAY(1, "微信支付"),
    ALIPAY(2, "支付宝"),
    CASH_ON_DELIVERY(3, "货到付款");

    private final int code;      // 支付方式代码
    private final String description;  // 支付方式描述

    PaymentMethodEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}